#!/bin/bash

set -o errexit
set -o pipefail
export LC_ALL=C

NODES_NUM=50
SYNC_DIR="/home/mixagol/work/data/sync_nw_workers"
SRC_DIR="/home/mixagol/work/data/genes_faa"

INPUT_DIR=/home/mixagol/work/data/nw_input3
OUTPUT_DIR=/home/mixagol/work/data/nw_output3
DATABASES_DIR=/home/mixagol/work/data/1_databases
SIMULATION_FILE=/home/mixagol/work/data/pupy_interpolation.txt

mkdir -p $OUTPUT_DIR

mkdir -p $SYNC_DIR
#rm -rf $SYNC_DIR/*

mpirun -q fs -np $NODES_NUM \
    ~/runner /home/mixagol/trunk/gene-class/3_raw_matrix_nw/run_nw_worker.sh \
        $SYNC_DIR $INPUT_DIR $OUTPUT_DIR $DATABASES_DIR $SIMULATION_FILE

mpirun -q quad -np 20 ~/runner /home/mixagol/trunk/gene-class/3_raw_matrix_nw/run_nw_worker.sh \
    /home/mixagol/work/data/sync_nw_workers \
    /home/mixagol/work/data/nw_input \
    /home/mixagol/work/data/nw_output \
    /home/mixagol/work/data/wu_blast_db \
    /home/mixagol/work/data/pupy_interpolation.txt

